# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class AuditLogAbstract(object):

    def __init__(self, logId=None, operation=None, captureTime=None, clientIp=None, riskLevel=None, duration=None, executeResult=None):
        """
        :param logId: (Optional) 日志ID
        :param operation: (Optional) 操作类型，如SELECT
        :param captureTime: (Optional) 捕获时间
        :param clientIp: (Optional) 客户端IP
        :param riskLevel: (Optional) 风险级别: 0->无风险，1->低风险，2->中风险，3->高风险
        :param duration: (Optional) 执行时间,如5μs,3ms
        :param executeResult: (Optional) 执行结果：
0：默认
1：未知
2：登录成功
3：登录失败
4：超时
5：执行成功
6：执行失败
7：语句不合法
8：注销
9：会话开始
10：阻断
11：会话断开

        """

        self.logId = logId
        self.operation = operation
        self.captureTime = captureTime
        self.clientIp = clientIp
        self.riskLevel = riskLevel
        self.duration = duration
        self.executeResult = executeResult
